import request from '@/utils/request';

export function getUser() {
  return request({
    url: '/list',
    method: 'get'
  })
}

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function getInfo(name) {
  return request({
    url: '/getInfo',
    method: 'get',
    params: {name}
  })
}

export function getUserInfo(params) {
  return request({
    url: '/getInfo',
    method: 'get',
    params
  })
}

export function login1(params) {
  return request({
    url: '/login',
    method: 'post',
    data: params
  })
}

